#include "CommandArgs.h"

CommandArgs::CommandArgs()
{
}

CommandArgs::CommandArgs(int argc, char* args[])
: args(args, args + argc)
{
}

std::string CommandArgs::argAt(size_t index) const
{
    return index < args.size() ? args[index] : "";
}

std::string quotify(const std::string& arg)
{
    return std::string("\"") + arg + ("\"");
}

std::wstring quotify(const std::wstring& arg)
{
    return std::wstring(L"\"") + arg + std::wstring(L"\"");
}